package org.yufan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yufan.bean.ItemCat;
import org.yufan.mapper.ItemCatMapper;
import org.yufan.service.ItemCatService;

import java.util.List;

@Service
public class ItemCatServiceImpl extends BaseServiceImpl<ItemCat> implements ItemCatService {

    @Autowired
    private ItemCatMapper itemCatMapper;



    @Override
    public List<ItemCat> queryItemCatByParentId(Long parentId) {

        //设置查询条件
        ItemCat record=new ItemCat();
        record.setParentId(parentId);
        List<ItemCat> itemCats = itemCatMapper.select(record);

        return itemCats;
    }
}
